﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace MC.RideEvent.Mvc.Models.CustomValidations
{
    public class RequiredVehiculeModelId: ValidationAttribute
    {
        public RequiredVehiculeModelId() 
        {

        }

        public override bool IsValid(object value)
        {
            bool result = value.ToString() != "0";
            return result;
        }
    }
}